<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
		
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
	
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>注册</title>

<%@include file="bt.jsp"%>
<style>
body {
	background-color:#ffc0a1;
}
.btn-primary{
	background-color: orange;
    border-color: orange;
}
.list-group-item.active{
	background-color: orange;
    border-color: orange;
}

</style>


</head>
<body>
	<div class="container">
		<!------------ 导航栏  -------------->
		<%@ include file="navBar.jsp"%>

		<!--左边栏-->
		<div class="row">
			<div class="col-md-2" style="padding-top: 10px;">
				<%@ include file="left.jsp"%></div>

			<!------------ 中间内容  -------------->

			<div class="col-md-8" style="padding-top: 10px;">
				<div class="card">
					<div class="card-header">查询已被机构登记的人
				
					</div>
					<div class="card-body">
					<p>${info}</p>

						<!-- 查询表单 -->
						<form class="form-signin"
							action="${pageContext.request.contextPath}/Chaxun" method="post">
							
						 <div class="form-group row">
								<label class="col-sm-2 col-form-label">姓名：</label>
								
									<input type="text" class="col-sm-6" id="pname"
										name="pname" placeholder="请输入姓名">
								
								<label class="col-sm-2 col-form-label">性别：</label>
								
									<div class="form-check form-check-inline" >
										<input class="form-check-input" type="checkbox"
											id="inlineCheckbox1" value="男" name="pgender"> <label
											class="form-check-label" for="inlineCheckbox1">男</label>
									</div>
									<div class="form-check form-check-inline">
										<input class="form-check-input" type="checkbox"
											id="inlineCheckbox2" value="女" name="pgender"> <label
											class="form-check-label" for="inlineCheckbox2">女</label>
									</div>
								
							</div>
						<div class="form-group row">
								<label class="col-sm-2 col-form-label">年龄：</label>
								
									<input type="text" class="col-sm-2" id="age1"
										name="age1" placeholder="">---
										<input type="text" class="col-sm-2" id="age2"
										name="age2" placeholder="">
								
						</div>
						
						
						<button class="btn btn btn-primary btn-block" type="submit">查询</button>

</form>

<table class="table table-bordered" style="margin-top:18px">
						<thead>
						<tr>
							<th scope="col">编号</th>
							<th scope="col">姓名</th>
							<th scope="col">性别</th>
							<th scope="col">年龄</th>
							<th scope="col">发现时间</th>
							<th scope="col"></th>
						</tr>
					</thead>	
					<tbody>
						
						<c:forEach items="${users}" var="item">
						<tr >
							<th scope="row">${item.ryid}</th>
							<td>${item.name}</td>
							<td>${item.gender}</td>
							<td>${item.age}</td>
							<td>${item.foundtime}</td>
							<td>
								<a type="button" href="/test02/admin/UserInfo?id=${item.ryid}"
							 class="btn btn-primary">详情</a>
							 	<a type="button" href="UserInfo?id=${item.ryid}"
							 class="btn btn-primary">确定找到</a>
							 </td>
						</tr>					
						
					</c:forEach>
					</tbody>
				</table>

<div class="row">
			<div class="col-md-4">
				<%@include file="infoCol.jsp"%>
			</div>
			<div class="col-md-4">
				<%@include file="infoCol.jsp"%>
			</div>
			<div class="col-md-4">
				<%@include file="infoCol.jsp"%>
			</div>
		</div>
						<h5 class="card-title">关于本站</h5>
						<p class="card-text">让点滴爱汇聚，让爱的人回家。</p>
						<a href="index.jsp" class="btn btn-primary">返回首页</a>
					</div>
				</div>
			</div>
			
			<div class="col-md-2" style="padding-top: 10px;"><%@ include
					file="right.jsp"%></div>
		</div>

		
	</div>
</body>
</html>